package com.ChengXiZi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 通知表
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Builder
@Accessors(chain = true)
@ApiModel(value = "notice对象", description = "通知表")
public class Notice {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("被通知用户id")
    private Long userId;

    @ApiModelProperty("通知类型")
    private Integer type;

    @ApiModelProperty("关联触发对象")
    private Long sourceId;

    @ApiModelProperty("通知内容摘要")
    private String content;

    @ApiModelProperty("是否已读")
    private Integer isRead;

    @ApiModelProperty("通知时间")
    private LocalDateTime createTime;
}
